<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
	pageContext.setAttribute("basePath", basePath);
%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>导航编辑</title>
<link rel="stylesheet"
	href="${basePath }/admin/bower_components/bootstrap/dist/css/bootstrap.min.css">
</head>
<body>
	<form class="form-horizontal" action="${basePath }admin/editNav.action"
		method="post">
		
			<input type="hidden" name="id" value="${nav.id }">
		
		<div class="form-group">
			<label for="InputName" class="col-sm-2 control-label">导航名称</label>
			<div class="col-sm-10">
				<input type="text" class="form-control" value="${nav.name }"
					id="InputName" name="name" placeholder="导航名称">
			</div>
		</div>
		<div class="form-group">
			<label for="InputEnglish_name" class="col-sm-2 control-label">英文名称</label>
			<div class="col-sm-10">
				<input type="text" class="form-control" value="${nav.english_name }"
					id="InputEnglish_name" name="English_name" placeholder="英文名称">
			</div>
		</div>
		<div class="form-group">
			<label for="InputUrl" class="col-sm-2 control-label">链接地址</label>
			<div class="col-sm-10">
				<input type="text" class="form-control" value="${nav.url }"
					id="InputUrl" name="url" placeholder="链接地址">
			</div>
		</div>
		<div class="form-group">
			<label for="inputTarget" class="col-sm-2 control-label">target</label>
			<div class="col-sm-10">
				<select name="target" class="form-control">
					<option value="_blank">blank</option>
					<option value="_self">self</option>
					<option value="_parent">parent</option>
					<option value="_top">top</option>
				</select>
			</div>
		</div>
		<div class="form-group">
			<label for="inputStatus" class="col-sm-2 control-label">状态</label>
			<div class="col-sm-10">
				<select name="status" class="form-control">
					<option value="1">启用</option>
					<option value="0">未启用</option>
				</select>
			</div>
		</div>
		<div class="form-group">
			<div class="col-sm-offset-2 col-sm-10">
				<button type="submit" class="btn btn-default">提交</button>
			</div>
		</div>
	</form>

</body>
</html>